<template>
	<view>
		<view>test</view>
		<texts :title='hello'  @myEvent= "getta"></texts>
		<view ></view>
		
	</view>
</template>

<script>
	import texts from '../../components/test/text.vue'
	export default{
		components: {
			texts
		},
		data(){
			return{
				url:" ",
				data1:" ",
				hello:"Hello"
			}
		},

		methods:{
			getta(num){
				this.hello = num
			},
			//获取数据
			async getdata1(){
				console.log("发送请求");
				uni.showToast({
					title:"发送请求"
				})
			const res = await this.$myRequest(this.url,data,"get")
			this.data1 = res.data.message
			}
		}
	}
</script>

<style >
	
	
</style>
